import { constantRoutes } from '@/router'

const mutations = {
  setRoutes(state, routes) {
    state.routes = constantRoutes.concat(routes)
  },
  setRoles(state, roles) {
    state.roles = roles
  },
  setPowers(state, powers) {
    state.powers = powers
  },
  setOptions(state, options) {
    state.options = options
  },
  setInfo(state, info) {
    state.info = info
  },
  setToken(state, token) {
    state.token = token
  },
  setDevice(state, device) {
    state.device = device
  },
  setWithoutAnimation(state, withoutAnimation) {
    state.withoutAnimation = withoutAnimation
  },
  storeCollapseChange(state, value) {
    state.storeCollapse = value
  }
}

export default mutations